#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include <fcntl.h>

int main(int argc,char **argv){

    FILE *output, *input;

   output = fopen("/dev/tty","r");
   input = fopen("/dev/pts/4","w");
//    input = fopen("/dev/tty","w");
   fprintf(input,"这就不能转向文件了\n");
   fflush(input);



   return 0;
}